#ifndef CLIENT_MGR_H
#define CLIENT_MGR_H
#include "../Common/common.h"

class ClientHandler;

class CClientMgr
{
public:
	CClientMgr();
	~CClientMgr();
	static CClientMgr& Instance()
	{
		static CClientMgr obj;
		return obj;
	}
	bool AddPos2Handle(unsigned int pos, ClientHandler *hd);
	bool RemovePos2Handle(unsigned int pos);
	ClientHandler* GetHandleByPos(unsigned int pos);

private:

	map<unsigned int, ClientHandler*> m_mapUsr2Client;
};

#endif